import axios from 'axios'
import { UniAdapter } from "uniapp-axios-adapter";

const service = axios.create({
	baseURL: 'http://192.168.0.37:8000/',
	timeout: 12 * 1000,
	adapter: UniAdapter
})

service.interceptors.request.use(config => {
	console.log('----------------')
	console.log(config)
	return config
}, error => {
	Promise.reject(error)
})

service.interceptors.response.use(response => {
	console.log(response)
	return response;
}, error => {
	Promise.reject(error)
})

export default service
